var a =1

function foo(){
    var a =2
    console.log(a);
}
foo()